cat <<EOF >  /etc/sysctl.d/k8s.conf
net.bridge.bridge-nf-call-ip6tables = 1
net.bridge.bridge-nf-call-iptables = 1
EOF
sysctl --system
ntpdate time.windows.com
cat <<EOF > /etc/yum.repos.d/kubernetes.repo
[kubernetes]
name=Kubernetes
baseurl=http://mirrors.aliyun.com/kubernetes/yum/repos/kubernetes-el7-x86_64
enabled=1
gpgcheck=0
repo_gpgcheck=0
gpgkey=http://mirrors.aliyun.com/kubernetes/yum/doc/yum-key.gpg
       http://mirrors.aliyun.com/kubernetes/yum/doc/rpm-package-key.gpg
EOF
yum install -y kubelet-1.14.0-0
yum install -y kubectl-1.14.0-0
yum install -y kubeadm-1.14.0-0
systemctl restart docker
sed -i "s/cgroup-driver=systemd/cgroup-driver=cgroupfs/g" /etc/systemd/system/kubelet.service.d/10-kubeadm.conf
systemctl enable kubelet && systemctl start kubelet
docker pull registry.cn-beijing.aliyuncs.com/shengyd2020/kube-apiserver:v1.14.0
docker pull registry.cn-beijing.aliyuncs.com/shengyd2020/kube-controller-manager:v1.14.0
docker pull registry.cn-beijing.aliyuncs.com/shengyd2020/kube-scheduler:v1.14.0
docker pull registry.cn-beijing.aliyuncs.com/shengyd2020/kube-proxy:v1.14.0
docker pull registry.cn-beijing.aliyuncs.com/shengyd2020/pause:3.1
docker pull registry.cn-beijing.aliyuncs.com/shengyd2020/etcd:3.3.10
docker pull registry.cn-beijing.aliyuncs.com/shengyd2020/coredns:1.3.1
docker tag registry.cn-beijing.aliyuncs.com/shengyd2020/kube-apiserver:v1.14.0 k8s.gcr.io/kube-apiserver:v1.14.0
docker tag registry.cn-beijing.aliyuncs.com/shengyd2020/kube-controller-manager:v1.14.0 k8s.gcr.io/kube-controller-manager:v1.14.0
docker tag registry.cn-beijing.aliyuncs.com/shengyd2020/kube-scheduler:v1.14.0 k8s.gcr.io/kube-scheduler:v1.14.0
docker tag registry.cn-beijing.aliyuncs.com/shengyd2020/kube-proxy:v1.14.0 k8s.gcr.io/kube-proxy:v1.14.0
docker tag registry.cn-beijing.aliyuncs.com/shengyd2020/pause:3.1 k8s.gcr.io/pause:3.1
docker tag registry.cn-beijing.aliyuncs.com/shengyd2020/etcd:3.3.10 k8s.gcr.io/etcd:3.3.10
docker tag registry.cn-beijing.aliyuncs.com/shengyd2020/coredns:1.3.1 k8s.gcr.io/coredns:1.3.1
docker rmi registry.cn-beijing.aliyuncs.com/shengyd2020/kube-apiserver:v1.14.0
docker rmi registry.cn-beijing.aliyuncs.com/shengyd2020/kube-controller-manager:v1.14.0
docker rmi registry.cn-beijing.aliyuncs.com/shengyd2020/kube-scheduler:v1.14.0
docker rmi registry.cn-beijing.aliyuncs.com/shengyd2020/kube-proxy:v1.14.0
docker rmi registry.cn-beijing.aliyuncs.com/shengyd2020/pause:3.1
docker rmi registry.cn-beijing.aliyuncs.com/shengyd2020/etcd:3.3.10
docker rmi registry.cn-beijing.aliyuncs.com/shengyd2020/coredns:1.3.1
docker pull ccr.ccs.tencentyun.com/k8s.shyidong.cn/node:v3.9.6
docker pull ccr.ccs.tencentyun.com/k8s.shyidong.cn/cni:v3.9.6
docker pull ccr.ccs.tencentyun.com/k8s.shyidong.cn/pod2daemon-flexvol:v3.9.6
docker pull ccr.ccs.tencentyun.com/k8s.shyidong.cn/kube-controllers:v3.9.6
